package com.cm.projectx.common;

import lombok.Getter;

import java.io.Serializable;


@Getter
public class BasePage implements Serializable {

    /**
     * 当前记录起始索引
     */
    private Integer current = 1;

    /**
     * 每页显示记录数
     */
    private Integer size = 10;

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public void setSize(Integer size) {
        if (size > 100) {
            this.size = 100;
        }else{
            this.size = size;
        }
    }
}
